<template>
	<view class="coupon_box">
		<coupon v-for="(item, index) in coupon[0].list" :key="index" v-bind:item="item"></coupon>
	</view>
</template>

<script>
	import coupon from '@/components/coupon';
	export default {
		components: {
			coupon
		},
		data(){
			return {
				coupon:[{},{}],
			}
		},
		onLoad() {
			this.loadData();
		},
		methods:{
			async loadData() {
				
				//评论数据
				let coupon = await this.$api.json('coupon');
				this.coupon = coupon;
				
			}
		}
	}
</script>

<style lang='scss'>
page { background:$bgcolor_white; }
.coupon_box {
	width:100%; height:auto; display:table; padding:6upx 26upx 26upx 26upx;
}
</style>